import request from '../uni-request.js'
import {
	placeURL,
	baseURL
} from "../base.js";


export const getLastLocation = (data) => {
	const url = `${placeURL}/api.php?m=openapp&a=getLastLocation`;
	return request({
		method: 'GET',
		data,
		url
	})
}

// 更新位置信息
export const updateLocation = (data) => {
	const url = `${placeURL}/api.php?m=openapp&a=updateLocation`;
	return request({
		method: 'POST',
		data,
		url
	})
}
